//
//  xsHadAddMaterialListView.h
//  digital_robot_demo
//
//  Created by xskj on 2024/8/29.
// 选中的素材列表

#import <UIKit/UIKit.h>
#import "NSString+WordSize.h"
#import "xsHadAddMaterialListCollectionView.h"

NS_ASSUME_NONNULL_BEGIN


@protocol xsHadAddMaterialListViewProtoCol <NSObject>

@optional
- (void)xsHadAddMaterialListVXbuttonEvent:(UIButton *)button;

//素材库添加被点击
- (void)xsHadAddMaterialPackAddbuttonbuttonEvent:(UIButton *)button;

@end

@interface xsHadAddMaterialListView : UIView

@property (nonatomic,assign)id<xsHadAddMaterialListViewProtoCol> delegate;


- (instancetype)initWithSelectMaterialData:(NSArray *)selectMaterialDataArray;
- (void)xsChangeFrame;

//collectionType;// 0全部 3图片 1视频
// 0时 fileType传@""  3时fileType传@"3" 1时fileType传@"1"
@property (nonatomic,copy)void (^xsHadAddMaterialListCellCallbackBlock)(xsSelectAddMaterialCollectionViewCellModel *cbModel ,NSInteger collecionTyp);

//collectionType;// 0全部 3图片 1视频
// 0时 fileType传@""  3时fileType传@"3" 1时fileType传@"1"
@property (nonatomic,copy)void (^xsHadAddMaterialListCellTopXbuttonCallbackBlock)(xsSelectAddMaterialCollectionViewCellModel *cbModel ,NSInteger collecionTyp);

- (void)xsHadAddMaterialListDeleteWithModel:(xsSelectAddMaterialCollectionViewCellModel *)dModel withCollectionType:(NSInteger)collecionTyp;

- (void)xsReloadCollectionViewWithDataArray:(NSArray *)dArray;



@end

NS_ASSUME_NONNULL_END
